import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: { title: '首页'}
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../pages/Login.vue'),
      meta: { title: '登录' }
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../pages/Register.vue'),
      meta: { title: '注册' }
    },
    //扫描二维码 
    {
      path: '/scancodepage',
      name: 'scancodepage',
      component: () => import('@/components/ScanCode/ScanCodePage'),
    },
    //扫码核销页面
    {
      path: '/cancel',
      name: 'cancel',
      component: () => import('@/components/ScanCode/CancelOperation'),
      props: true
    },
    //输入核销页面
    {
      path: '/cancelinput',
      name: 'cancelinput',
      component: () => import('@/components/ScanCode/CancelInput'),
    },
    //经营统计
    {
      path: '/businessstatistics',
      name: 'businessstatistics',
      component: () => import('@/components/BusinessStatistics'),
    },
    //核销记录
    {
      path: '/cancelrecord',
      name: 'cancelrecord',
      component: () => import('@/components/CancelRecord'),
    },
    //收支明细
    {
      path: '/moneyAccount',
      name: 'moneyAccount',
      component: () => import('@/components/money/MoneyAccount'),
    }
    ,
    //提现
    {
      path: '/moneyWithdraw',
      name: 'moneyWithdraw',
      component: () => import('@/components/money/MoneyWithdraw'),
    }
    ,
    //结果
    {
      path: '/moneyResult',
      name: 'moneyResult',
      component: () => import('@/components/money/MoneyResult'),
    }
    ,
    //订单管理
    {
      path: '/indentManagement',
      name: 'indentManagement',
      component: () => import('@/components/indent/IndentManagement'),
    }
    ,
    //订单详情
    {
      path: '/indentDetails',
      name: 'indentDetails',
      component: () => import('@/components/indent/IndentDetails')
    }
    ,
    //卡券管理
    {
      path: '/couponCom',
      name: 'couponCom',
      component: () => import('@/components/Coupon/CouponCom')
    }
    ,
    //新增卡券
    {
      path: '/sendCoupon',
      name: 'sendCoupon',
      component: () => import('@/components/Coupon/SendCoupon')
    }
    ,
    //维修任务
    {
      path: '/maintainTask',
      name: 'maintainTask',
      component: () => import('@/components/Maintain/MaintainTask')
    }
    ,
    //维修详情
    {
      path: '/maintainDetail',
      name: 'maintainDetail',
      component: () => import('@/components/Maintain/MaintainDetail')
    }
    ,
    //活动发布
    {
      path: '/activity',
      name: 'activity',
      component: () => import('@/components/Activity/Activity')
    }
    ,
    //活动详情
    {
      path: '/activityInfo',
      name: 'activityInfo',
      component: () => import('@/components/Activity/ActivityInfo')
    }
    ,
    //活动发布
    {
      path: '/activityRelease',
      name: 'activityRelease',
      component: () => import('@/components/Activity/ActivityRelease')
    }
    ,
    //商户资料
    {
      path: '/buyInfo',
      name: 'buyInfo',
      component: () => import('@/components/Merchant/BuyInfo')
    }
    ,
    //商户修改
    {
      path: '/messageEdit',
      name: 'messageEdit',
      component: () => import('@/components/Merchant/MessageEdit')
    },
    //评价管理
    {
      path:'/evaluation',
      name:'evaluation',
      component: ()=> import('@/components/evaluation/EvaluationManage')
    },
    //订单详情
    {
      path:'/orderDetail',
      name:'orderDetail',
      component: ()=> import('@/components/evaluation/OrderDetail')
    },
  ]
})

